/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: AliceMana
 * Date: 2022-08-04
 * Time: 19:22
 */
public class TestStudent {
    public String name;
    public String sex;
    public String id;

    public void setData(String n, String s, String i) {
        this.name = n;
        this.sex = s;
        this.id = i;
    }

    public void printData() {
        System.out.println(this.name);
        System.out.println(this.sex);
        System.out.println(this.id);
    }

    public static void main(String[] args) {
        TestStudent s1 = new TestStudent();
        s1.setData("张三", "男", "123456");
        s1.printData();
    }
}
